package com.card.timer;

import java.util.Map;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.card.admin.IosServerManager;
import com.card.admin.ServerManager;
import com.card.match.MatchManager;
import com.card.user.User;
import com.card.user.UserManager;
/**
 * 金币回复定时器
 * @author xiaoaogame
 *
 */
public class OnlineJob implements Job{

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		/*ServerManager.getInstance().load();
		IosServerManager.getInstance().load();*/
		Map<String, User> userMap = UserManager.getInstance().getUserMap();
		for (User user : userMap.values()) {
			user.checkPingTimeOut();
		}
	}
}
